package com.javabasestage2.fzr.If;

public class ForExercise1 {
    public static void main(String[] args) {
        //方法1.
//        int t = 5;
//        for (int i = 0 ; i < 6 ; i++) {
//            System.out.println(i + "+" + t + "=" + 5);//比较关键
//            t--;
//        }
        //方法2.
        //先死后活
        int n = 100;

        for (int i = 0 ; i < 6 ; i++) {
            System.out.println(i + "+" + (n-i) + "=" + n);//比较关键

        }
    }
}
